//
//  LBListView.m
//  LBAlert
//
//  Created by LINAICAI on 2017/12/7.
//  Copyright © 2017年 LINAICAI. All rights reserved.
//

#import "LBListView.h"
#import <Masonry.h>
@implementation LBListView
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        UITextField *textField = [[UITextField alloc]init];
        textField.placeholder = @"请输入您的名字";
        textField.borderStyle = UITextBorderStyleLine;
        textField.tintColor = [UIColor lightGrayColor];
        [self addSubview:textField];
        
        
        [textField mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.top.right.equalTo(self);
            make.height.mas_equalTo(35);
        }];
        
        UIView *view = [[UIView alloc]init];
        view.backgroundColor = [UIColor blueColor];
        [self addSubview:view];
        [view mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(textField.mas_bottom);
            make.left.bottom.right.equalTo(self);
            make.height.mas_equalTo(200);
        }];
    }
    return self;
}
- (void)layoutSubviews{
    [super layoutSubviews];

}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
